package com.pie4cloud.pie.job.api.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @program: sod
 * @description:
 * @author: zzj
 * @create: 2019-12-20 15:14
 **/
@Data
@Entity
@Table(name = "T_DATA_DISPENSE_HISTORY")
public class DispenseHistoryEntity extends BaseEntity {
	@Id
	@Column(name = "ID",length = 11)
	@TableId(value = "Id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
	@ApiModelProperty(value="id")
	private Long id;
	/**
	 * 历史资料开始时间
	 */
	@Column(name = "history_start_time", length = 255)
	private Date historyStartTime;
	/**
	 * 历史资料结束时间
	 */
	@Column(name = "history_end_time", length = 255)
	private Date historyEndTime;

/*	@OneToOne(targetEntity = DispenseCongfigEntity.class, cascade = CascadeType.ALL)
	@JoinColumn(name = "config_id")
	private DispenseCongfigEntity dispenseCongfig;*/


}

